class Completion < ActiveRecord::Base

  hobo_model
  
  belongs_to :user
  belongs_to :questionnaire


  # --- Hobo Permissions --- #

  def creatable_by?(creator)
    creator == self and not creator.guest?
  end

  def updatable_by?(updater, new)
    updater = self
  end

  def deletable_by?(deleter)
    deleter == self
  end

  def viewable_by?(viewer, field)
    true
  end
  
end
